<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="settings.aspx.cs" Inherits="GleamTech.FileVista.SettingsPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%=InsertInfo%>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><%=language.GetString("636")%></title>
    	<link href="filevistacontrol/styles/default.css" rel="stylesheet" />
		<script src="filevistacontrol/scripts/library/utility.js" type="text/javascript"></script>
        <script src="scripts/administration.js" type="text/javascript"></script>		
		<script type="text/javascript">
            function CheckBoxLogEventsClick(checked) {
                for (var i = 0; i < 13; i++)
                    enableElement("CheckBox" + i, checked);
                
                enableElement("TextBoxLogSize", checked, "", true);
                enableElement("TextBoxLogClearDays", checked, "", true);
            }
            
	        function CheckBoxInit() {
	            if (!document.getElementById("CheckBoxLogEvents").checked)
	                CheckBoxLogEventsClick(false);
	        }
	        
	        function OnSubmit() {
                document.getElementById("FieldLogSize").value = document.getElementById("TextBoxLogSize").value;
                document.getElementById("FieldLogClearDays").value = document.getElementById("TextBoxLogClearDays").value;
                document.getElementById("FieldMaxPasswordAge").value = document.getElementById("TextBoxMaxPasswordAge").value;
                document.getElementById("FieldMaxAttempts").value = document.getElementById("TextBoxMaxAttempts").value;
            }

	        function OnClearLog () {
	            return confirm(document.getElementById("ConfirmMessage").value);
            }
        </script>
    </head>
    <body id="BodyTag" runat="server" class="dialog">
        <form id="form1" runat="server">
            <asp:HiddenField ID="ClientMessage" runat="server" />
            <asp:HiddenField ID="ConfirmMessage" runat="server" />
            <asp:HiddenField ID="FieldLogSize" runat="server" />
            <asp:HiddenField ID="FieldLogClearDays" runat="server" />          
            <asp:HiddenField ID="FieldMaxPasswordAge" runat="server" />
            <asp:HiddenField ID="FieldMaxAttempts" runat="server" />                     
			<table cellpadding="0" cellspacing="10" border="0" style="width: 100%; height: 100%;">
                <tr>
                    <td><%=language.GetString("638")%></td>
                    <td><asp:DropDownList ID="DropDownListCultures" runat="server" style="width: 250px"></asp:DropDownList></td>
                </tr>
                <tr>
                    <td colspan="2"><hr /></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:CheckBox ID="CheckBoxLogEvents" runat="server" />
                        <fieldset style="margin-left: 20px; margin-top: 10px"><legend style="color:black; text-align:center"><%=language.GetString("637")%></legend>
                            <table style="width: 250px; margin-top: 10px; margin-bottom: 10px; margin-left: 10px" cellpadding="0" cellspacing="0" border="0">
                                <tr>
                                    <td><asp:CheckBox ID="CheckBox0" runat="server" /></td>
                                    <td><asp:CheckBox ID="CheckBox1" runat="server" /></td>
                                </tr>
                                <tr>
                                    <td><asp:CheckBox ID="CheckBox2" runat="server" /></td>
                                    <td><asp:CheckBox ID="CheckBox3" runat="server" /></td>
                                </tr>
                                <tr>
                                    <td><asp:CheckBox ID="CheckBox4" runat="server" /></td>
                                    <td><asp:CheckBox ID="CheckBox5" runat="server" /></td>
                                </tr>
                                <tr>
                                    <td><asp:CheckBox ID="CheckBox6" runat="server" /></td>
                                    <td><asp:CheckBox ID="CheckBox7" runat="server" /></td>
                                </tr>
                                <tr>
                                    <td><asp:CheckBox ID="CheckBox8" runat="server" /></td>
                                    <td><asp:CheckBox ID="CheckBox9" runat="server" /></td>
                                </tr>
                                <tr>
                                    <td><asp:CheckBox ID="CheckBox10" runat="server" /></td>
                                    <td><asp:CheckBox ID="CheckBox11" runat="server" /></td>
                                </tr>
                                <tr>
                                    <td><asp:CheckBox ID="CheckBox12" runat="server" /></td>
                                    <td>&nbsp;</td>
                                </tr>
                            </table>
                        </fieldset>
                        <fieldset style="margin-left: 20px; margin-top: 10px"><legend style="color:black; text-align:center"><%=language.GetString("641")%></legend>
                            <div style="margin-left: 10px; margin-top: 10px; margin-bottom: 10px">
                                <%=language.GetString("642")%>&nbsp;&nbsp;&nbsp;<%=language.GetString("635", "<input id=\"TextBoxLogSize\" type=\"text\" style=\"width: 40px; text-align: right\" maxLength= \"5\" value=\"" + logSize + "\" />")%>
                                <br /><br /><%=language.GetString("643")%>
                                <br /><br /><%=language.GetString("644", "<input id=\"TextBoxLogClearDays\" type=\"text\" style=\"width: 30px; text-align: right\" maxLength= \"3\" value=\"" + logClearDays + "\"/>")%>
                            </div>                        
                        </fieldset>                      
                    </td>                       
                </tr>
                <tr>
                    <td colspan="2" style="text-align: right">
                        <asp:Button ID="Button3" runat="server" style="width: 100px" OnClick="Button3_Click" OnClientClick="return OnClearLog()" />                    
                    </td>
                </tr>
                <tr>
                    <td colspan="2"><hr /></td>
                </tr>                
                <tr>
                    <td colspan="2">
                        <%=language.GetString("654", "<input id=\"TextBoxMaxPasswordAge\" type=\"text\" style=\"width: 30px; text-align: right\" maxLength= \"3\" value=\"" + maxPasswordAge + "\"/>")%>                    
                        <br /><br /><%=language.GetString("655", "<input id=\"TextBoxMaxAttempts\" type=\"text\" style=\"width: 30px; text-align: right\" maxLength= \"3\" value=\"" + maxAttempts + "\"/>")%>                    
                    </td>
                </tr>
            </table>
			<div style="position:absolute; right:5px; bottom:10px"><asp:Button ID="Button1" runat="server" style="width: 80px" OnClick="Button1_Click" OnClientClick="OnSubmit()" />&nbsp;<asp:Button ID="Button2" runat="server" Text="Button" style="width: 80px" OnClientClick="parent.ModalDialog.close(); return false;" /></div>
        </form>
    </body>
</html>
